<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<script language="javaScript" type="text/javascript"
	src="<c:url value='/cal/calendar.js'/>">
	
</script>

<link href="<c:url value='/cal/calendar.css'/>" rel="stylesheet"
	type="text/css">
<link href="<c:url value='/Styles/style.css'/>" rel="stylesheet"
	type="text/css" />

</head>
<body>
	<div class="page">
		<div id="header-wrapper">
			<div id="header">
				<div id="logo">
					<!-- Header -->
					<h4>&nbsp;</h4>
				</div>
			</div>
		</div>

		<div class="page-wrapper">
			<div class="main">
				<div class="colleft">
					<div class="col1">
						<!-- Side menu -->
						<h4><%@ include file="staff-logout.jsp"%></h4>
						<h4><%@ include file="employee-menu.jsp"%></h4>
					</div>
					<div class="col2">
						<!-- Main Content -->
						<table border=0 width="100%">
							<tr>
								<td width="200" height="170" valign="top"><table
										class="framed" align="center" width="100%" cellspacing="2"
										cellpadding="2" border="0">
									</table>
								</td>
								<td><h2>View Leave Application Staff</h2>

									<h3>${request.manager.name}</h3>
									<table cellspacing="1" cellpadding="1" border="1" width="50%">
										<tr class="listHeading">
											<th>LeaveID</th>
											<th>FromDate</th>
											<th>ToDate</th>
											<th>Status</th>
											<th>Reason</th>
											<!--<th>LeaveNature</th>
            <th>WorkDissemination</th>
            -->
											<th>ContactDetails</th>
											<th>ApplyDate</th>
											<th>LeaveType</th>
										</tr>
										<c:forEach var="user" items="${userId}">
											<tr class="${status.index%2==0?'even':'odd'}">
												<td class="nowrap">${user.id }</td>
												<td class="nowrap">${user.from}</td>
												<td class="nowrap">${user.to}</td>
												<td class="nowrap">${user.status}</td>
												<td class="nowrap">${user.reason}</td>
												<!--
             <td class="nowrap">${user.leaveNature}</td>
             <td class="nowrap">${user.workDissemination}</td>
             -->
												<td>${user.contactDetails}</td>
												<td class="nowrap">${user.applyDate}</td>
												<td class="nowrap">${user.leaveType.getType()}</td>
												<td><c:url var="updurl" scope="page"
														value="DetailLeaveViewStaffServlet">
														<c:param name="id" value="${user.id}" />
													</c:url> <a href="${updurl}">Leave Detail</a></td>
											</tr>

										</c:forEach>
									</table>
								</td>
							</tr>
						</table>
					</div>
					<!-- end col2 -->

				</div>
				<!-- end colleft -->

			</div>
			<!-- end main -->

		</div>
		<!-- end page-wrapper -->

	</div>
	<!-- end page -->

</body>
</html>